import kassiopeia.gui.User

class BootStrap {

    def springSecurityService

    def init = { servletContext ->

        def userAdmin = User.findByUsername('kassiopeia') ?: new User(
                username: 'kassiopeia',
                password: springSecurityService.encodePassword('kassiopeia123'),
                enabled: true).save(failOnError: true)

    }
    def destroy = {
    }
}
